package com.isoftstone.spring.subject.config02;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/config")
public class ConfigController {

    @Autowired
    private ConfigService configService;
    @GetMapping
    public String get() {
        return configService.getConfig().toString();
    }
}
